<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(res){
            console.log("跨域结果",res);
        }
        document.onclick = function (){
            let scr = document.createElement("script");
            scr.src = "http://192.168.57.98/PHPcode/php-code/phpDay07/php/jsonp.php?cb=fn" ;
            document.head.appendChild(scr);
        }
    </script>
</body>
</html>